package com.boomsecret.lang3;

import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.RandomUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.SystemUtils;

/**
 * Created by wangjinliang on 2018/4/11.
 */
public class Lang3Demo {
    public static void main(String[] args) {
        System.out.println(StringUtils.isEmpty(null));
        System.out.println(StringUtils.isEmpty(""));

        System.out.println(ObjectUtils.anyNotNull(null, null));
        System.out.println(ObjectUtils.anyNotNull(11, null));

        System.out.println(RandomUtils.nextBoolean());
        System.out.println(RandomUtils.nextBoolean());

        System.out.println(SystemUtils.JAVA_HOME);
    }
}
